<?php
// 获得健康知识信息
// header("content-type:text/html;charset=UTF-8");
include_once("conn.php");

$select = "SELECT * FROM tips_infos ORDER BY tips_Date ASC";

if ($result = mysqli_query($connect_DB, $select)) {
    if (mysqli_num_rows($result) > 0) {
        while ($row = mysqli_fetch_object($result)) {
            echo "
            <div class='list-con'>
                <div class='num'>" . $row->tips_ID . "</div>
                <div class='title' title='". $row->tips_Title ."'>" . $row->tips_Title . "</div>
                <div class='date'>" . $row->tips_Date . "</div>
                <div class='click'>" . $row->tips_Click . "</div>
                <div class='caozuo'><a href='a_DelTips.php?tid=" . $row->tips_ID . "'>删除</a></div>
            </div>
            ";
        }
    } else {
        echo "<div class='list-con'>暂无信息</div>";
    }
} else {
    echo "<div class='list-con'>查询出错." . $select . "</div>";
}

$connect_DB->close();
?>